package sctu.edu.java.year2016.team07.huangsuixin.day20160524.chapter7_3;

import java.util.Scanner;

/**
 * Created by Huang Suixin on 2016/5/24.
 */

/**
 * 3.根据运行参数的个数决定循环打印变量i值的次数。
 */
public class Client {
    public static void main(String[] args) {
        System.out.print("请输入变量i的值");

        Scanner scan = new Scanner(System.in);
        String i = scan.nextLine();

        TestClass test_1 = new TestClass();
        test_1.inPut(2, 5, 'i', "Hollow", 5.25);//参数个数。
        System.out.println("当前参数个数为5");
        for (int j = 1; j <= test_1.n; j++) {
            System.out.println("打印变量i值第" + j + "次：" + i);
        }
    }
}
